package cn.edu.scnu.comment.mapper;

import cn.edu.scnu.pojo.Comment;
import cn.edu.scnu.vo.CommentVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CommentMapper {
    void saveComment(Comment comment);

    List<CommentVO> getCommentByMatchId(@Param("matchId") String matchId);

    void likeComment(@Param("commentId") String commentId);

    Integer delCommentById(@Param("username") String username, @Param("commentId") String commentId);

    void delCommentByMatchId(@Param("matchId") String matchId);
}
